﻿' LibWowArmory
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Imports System.Collections.Generic
Imports System.Xml.Serialization

Namespace roncliProductions.LibWowArmory.TalentTreeSchema

    Public Class talent

        Private intColumn As Integer
        Private strIcon As String
        Private strKey As String
        Private strName As String
        Private strRequires As String
        Private intTier As Integer
        Private rRank As New List(Of rank)
        Private sSpell As New List(Of spell)

        <XmlAttribute()> Public Property column() As Integer
            Get
                Return intColumn
            End Get
            Set(ByVal value As Integer)
                intColumn = value
            End Set
        End Property

        <XmlAttribute()> Public Property icon() As String
            Get
                Return strIcon
            End Get
            Set(ByVal value As String)
                strIcon = value
            End Set
        End Property

        <XmlAttribute()> Public Property key() As String
            Get
                Return strKey
            End Get
            Set(ByVal value As String)
                strKey = value
            End Set
        End Property

        <XmlAttribute()> Public Property name() As String
            Get
                Return strName
            End Get
            Set(ByVal value As String)
                strName = value
            End Set
        End Property

        <XmlAttribute()> Public Property requires() As String
            Get
                Return strRequires
            End Get
            Set(ByVal value As String)
                strRequires = value
            End Set
        End Property

        <XmlAttribute()> Public Property tier() As Integer
            Get
                Return intTier
            End Get
            Set(ByVal value As Integer)
                intTier = value
            End Set
        End Property

        <XmlElement()> Public Property rank() As List(Of rank)
            Get
                Return rRank
            End Get
            Set(ByVal value As List(Of rank))
                rRank = value
            End Set
        End Property

        <XmlElement()> Public Property spell() As List(Of spell)
            Get
                Return sSpell
            End Get
            Set(ByVal value As List(Of spell))
                sSpell = value
            End Set
        End Property

    End Class

End Namespace